{% extends 'base.html' %}

{% block title %}

{% endblock %}

{% block content %}
    <h1 class="mt-4">确认删除仓库</h1>
    <div class="alert alert-warning" role="alert">
            你确定要删除这个仓库吗？操作无法撤销！
    </div>
    <form method="post">
            {% csrf_token %}
            <button type="submit" class="btn btn-primary">删除</button>
            <a href="{% url 'warehouses_list' %}" class="btn btn-secondary">取消 </a>
    </form>
    {% if messages %}
    <div class="mt-4">
        {% for message in messages %}
        <div class="alert {% if message.tags %}alert-{{ message.tags}} {% endif %}" role="alert">
            {{  message }}
        </div>
        {% endfor %}
    </div>
    {% endif %}


{% endblock %} 